.class Lcom/estrongs/android/ui/dialog/g0$b;
.super Ljava/lang/Object;
.source "NewFavoriteWebPageDialog.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/ui/dialog/g0;->b()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/dialog/g0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/g0;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 6

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/g0;->a(Lcom/estrongs/android/ui/dialog/g0;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f09055b

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/EditText;

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/g0;->a(Lcom/estrongs/android/ui/dialog/g0;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f09055a

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 3
    invoke-virtual {p2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p2

    .line 4
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz p2, :cond_b

    const-string v2, ""

    .line 5
    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    goto/16 :goto_1

    :cond_0
    if-eqz v0, :cond_a

    .line 6
    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto/16 :goto_0

    .line 7
    :cond_1
    invoke-static {v0}, Les/az;->a(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x1

    if-nez v1, :cond_2

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p2

    const v0, 0x7f1106ad

    invoke-virtual {p2, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    return-void

    .line 9
    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/g0;->c(Lcom/estrongs/android/ui/dialog/g0;)Z

    move-result v1

    if-eqz v1, :cond_8

    .line 10
    new-instance v1, Ljava/io/File;

    sget-object v3, Lcom/estrongs/android/pop/b;->d:Ljava/lang/String;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    .line 11
    invoke-static {v4}, Lcom/estrongs/android/ui/dialog/g0;->d(Lcom/estrongs/android/ui/dialog/g0;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    const v4, 0x7f110770

    if-eqz v3, :cond_5

    .line 13
    new-instance v3, Ljava/io/File;

    sget-object v5, Lcom/estrongs/android/pop/b;->d:Ljava/lang/String;

    invoke-direct {v3, v5, v0}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 14
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_4

    .line 15
    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    .line 17
    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    .line 18
    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_3
    return-void

    .line 19
    :cond_4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1, v3, p2}, Lcom/estrongs/android/ui/dialog/g0;->a(Landroid/content/Context;Ljava/io/File;Ljava/io/File;Ljava/lang/String;)V

    .line 20
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void

    .line 21
    :cond_5
    new-instance v1, Ljava/io/File;

    sget-object v3, Lcom/estrongs/android/pop/b;->e:Ljava/lang/String;

    iget-object v5, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    .line 22
    invoke-static {v5}, Lcom/estrongs/android/ui/dialog/g0;->d(Lcom/estrongs/android/ui/dialog/g0;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v1, v3, v5}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 23
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_9

    .line 24
    new-instance v3, Ljava/io/File;

    sget-object v5, Lcom/estrongs/android/pop/b;->e:Ljava/lang/String;

    invoke-direct {v3, v5, v0}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 25
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_7

    .line 26
    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_6

    .line 27
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p1

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    .line 28
    invoke-static {p2}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p2

    invoke-virtual {p2, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    .line 29
    invoke-static {p1, p2, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_6
    return-void

    .line 30
    :cond_7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v0}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1, v3, p2}, Lcom/estrongs/android/ui/dialog/g0;->a(Landroid/content/Context;Ljava/io/File;Ljava/io/File;Ljava/lang/String;)V

    .line 31
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void

    .line 32
    :cond_8
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {v2}, Lcom/estrongs/android/ui/dialog/g0;->c(Lcom/estrongs/android/ui/dialog/g0;)Z

    move-result v2

    invoke-static {v1, p2, v2, v0}, Lcom/estrongs/android/ui/dialog/g0;->a(Landroid/content/Context;Ljava/lang/String;ZLjava/lang/String;)V

    .line 33
    :cond_9
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    goto :goto_2

    .line 34
    :cond_a
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p1

    const p2, 0x7f1106d7

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    goto :goto_2

    .line 35
    :cond_b
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/g0$b;->a:Lcom/estrongs/android/ui/dialog/g0;

    invoke-static {p1}, Lcom/estrongs/android/ui/dialog/g0;->b(Lcom/estrongs/android/ui/dialog/g0;)Landroid/content/Context;

    move-result-object p1

    const p2, 0x7f110b25

    invoke-static {p1, p2, v1}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :goto_2
    return-void
.end method
